﻿<phoneNavigation:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phoneNavigation="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Navigation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone.Shell"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" 
    xmlns:System="clr-namespace:System;assembly=mscorlib" 
    x:Class="Twitter.MainPage"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    >
	<phoneNavigation:PhoneApplicationPage.Resources>
		<DataTemplate x:Key="Timelinetweet">
			<Border BorderThickness="0,0,0,1" BorderBrush="#FF838383" d:DesignWidth="373" d:DesignHeight="243" >
				<Grid>
					<Grid.RowDefinitions>
						<RowDefinition/>
						<RowDefinition Height="Auto"/>
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="0.215*"/>
						<ColumnDefinition Width="0.785*"/>
					</Grid.ColumnDefinitions>
					<TextBlock TextWrapping="Wrap" Text="{Binding UserName}" FontWeight="Bold" Grid.Column="1" Margin="5,0,0,0"/>
					<TextBlock TextWrapping="Wrap" Text="{Binding Message}" Grid.Column="1" Grid.Row="1" Margin="5,0,0,0"/>
					<Image Source="{Binding ImageSource}" Grid.RowSpan="2" VerticalAlignment="Top"/>
				</Grid>
			</Border>
		</DataTemplate>
		<ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
			<StackPanel/>
		</ItemsPanelTemplate>
		<ItemsPanelTemplate x:Key="ItemsPanelTemplate2">
			<StackPanel/>
		</ItemsPanelTemplate>
		<DataTemplate x:Key="TemplateTeet">
			<Border BorderThickness="0,0,0,1" BorderBrush="#FF838383" d:DesignWidth="373" d:DesignHeight="243" >
				<Grid>
					<Grid.RowDefinitions>
						<RowDefinition/>
						<RowDefinition Height="Auto"/>
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="0.214*"/>
						<ColumnDefinition Width="0.566*"/>
						<ColumnDefinition Width="0.22*"/>
					</Grid.ColumnDefinitions>
					<TextBlock TextWrapping="Wrap" Text="{Binding UserName}" FontWeight="Bold" Grid.Column="1" Margin="5,0,0,0" Grid.ColumnSpan="2"/>
					<TextBlock TextWrapping="Wrap" Text="{Binding Message}" Grid.Column="1" Grid.Row="1" Margin="5,0,0,0" Grid.ColumnSpan="2"/>
					<Image Source="{Binding ImageSource}" VerticalAlignment="Top"/>
					<Button Content="X" Grid.Column="2" Height="15" Margin="8,0" VerticalAlignment="Top" Click="Button_Click"/>
				</Grid>
			</Border>
		</DataTemplate>
		<DataTemplate x:Key="SearchTemplate">
			<Grid>
				<TextBlock Margin="0,0,1,0" TextWrapping="Wrap" Text="{Binding UserName}" d:LayoutOverrides="Width, Height"/>
			</Grid>
		</DataTemplate>
		<Storyboard x:Name="AnimateSearch">
			<DoubleAnimation Duration="0:0:1" To="0" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="textBlockListTitleFallowing" d:IsOptimized="True"/>
			<DoubleAnimation Duration="0:0:1" To="0" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="ContentFallowing" d:IsOptimized="True"/>
			<DoubleAnimation Duration="0:0:1" To="0" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.CenterOfRotationX)" Storyboard.TargetName="textBlockListTitleFallowing" d:IsOptimized="True"/>
			<DoubleAnimation Duration="0:0:1" To="0" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.CenterOfRotationX)" Storyboard.TargetName="ContentFallowing" d:IsOptimized="True"/>
			<DoubleAnimation Duration="0:0:1" To="77" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="Search" d:IsOptimized="True"/>
			<DoubleAnimation Duration="0:0:1" To="0" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.CenterOfRotationX)" Storyboard.TargetName="Search" d:IsOptimized="True"/>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Search">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</phoneNavigation:PhoneApplicationPage.Resources>

	<phoneNavigation:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phoneNavigation:PhoneApplicationPage.FontFamily>
    <phoneNavigation:PhoneApplicationPage.FontSize>
        <StaticResource ResourceKey="PhoneFontSizeNormal"/>
    </phoneNavigation:PhoneApplicationPage.FontSize>
    <phoneNavigation:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phoneNavigation:PhoneApplicationPage.Foreground>
			<!--<phoneNavigation:PhoneApplicationPage.ApplicationBar>
	<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
		<shell:ApplicationBar.Buttons>
</shell:ApplicationBar.Buttons>
</shell:ApplicationBar>
</phoneNavigation:PhoneApplicationPage.ApplicationBar>-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}">
    	<VisualStateManager.VisualStateGroups>
    		<VisualStateGroup x:Name="VisualStateGroup">
    			<VisualStateGroup.Transitions>
    				<VisualTransition GeneratedDuration="0:0:0.5">
    					<VisualTransition.GeneratedEasingFunction>
    						<CubicEase EasingMode="EaseIn"/>
    					</VisualTransition.GeneratedEasingFunction>
    				</VisualTransition>
    			</VisualStateGroup.Transitions>
    			<VisualState x:Name="Login"/>
    			<VisualState x:Name="Profile">
    				<Storyboard>
    					<DoubleAnimation Duration="0" To="-2400" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentLogin" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentTimeLine" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentEditProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitle" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleTimeline" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleEditProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-24" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ContentLogin" d:IsOptimized="True"/>
    				</Storyboard>
    			</VisualState>
    			<VisualState x:Name="Timeline">
    				<Storyboard>
    					<DoubleAnimation Duration="0" To="-800" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitle" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-696" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleTimeline" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-766.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-800" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-610.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleEditProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-2934" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentLogin" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-960" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-960" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentTimeLine" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-960" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-960" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="14" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ContentLogin" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ContentProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ContentTimeLine" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ContentTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ContentFallowing" d:IsOptimized="True"/>
    				</Storyboard>
    			</VisualState>
    			<VisualState x:Name="Tweets">
    				<Storyboard>
    					<DoubleAnimation Duration="0" To="-3436" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentLogin" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1420" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1420" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentTimeLine" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1420" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1000" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitle" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1000" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleTimeline" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1000" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1000" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleEditProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1400" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1400" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentEditProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1486.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="textBlockListTitleFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="48" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ContentLogin" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Search" d:IsOptimized="True"/>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.ZIndex)" Storyboard.TargetName="textBlockListTitleFallowing">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<System:Int32>1</System:Int32>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    					<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="textBlockPageTitle">
    						<DiscreteObjectKeyFrame KeyTime="0">
    							<DiscreteObjectKeyFrame.Value>
    								<System:Boolean>False</System:Boolean>
    							</DiscreteObjectKeyFrame.Value>
    						</DiscreteObjectKeyFrame>
    					</ObjectAnimationUsingKeyFrames>
    				</Storyboard>
    			</VisualState>
    			<VisualState x:Name="Following">
    				<Storyboard>
    					<DoubleAnimation Duration="0" To="-1900" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1900" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentTimeLine" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1900" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1900" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1808" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitle" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1808" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleTimeline" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1328" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1808" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-1808" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="textBlockListTitleEditProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="textBlockListTitle" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="textBlockListTitleTimeline" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="textBlockListTitleTweets" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="textBlockListTitleFallowing" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="textBlockListTitleEditProfile" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="-3858" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ContentLogin" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="14" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ContentLogin" d:IsOptimized="True"/>
    					<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Search" d:IsOptimized="True"/>
    				</Storyboard>
    			</VisualState>
    		</VisualStateGroup>
    	</VisualStateManager.VisualStateGroups>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitleGrid is the name of the application and page title-->

        <!--TitleGrid is the name of the application and page title-->
        <Grid x:Name="Search" HorizontalAlignment="Right" Margin="0,43,-1900,0" Grid.RowSpan="2" Width="480">
        	<Grid.Projection>
        		<PlaneProjection/>
        	</Grid.Projection>
    		<TextBlock Text="search" x:Name="textBlockListTitleFallowing" Style="{StaticResource PhoneTextPageTitle2Style}" Margin="-15,0,11,0" RenderTransformOrigin="0.5,0.5" MouseLeftButtonUp="textBlockListTitleFallowing_MouseLeftButtonUp" Height="105" VerticalAlignment="Top" MouseLeftButtonDown="textBlockListTitleFallowing_MouseLeftButtonDown">
    			<TextBlock.Projection>
    				<PlaneProjection/>
    			</TextBlock.Projection>
    			<i:Interaction.Triggers>
    				<i:EventTrigger EventName="MouseLeftButtonUp">
    					<ic:GoToStateAction StateName="Following"/>
    				</i:EventTrigger>
    			</i:Interaction.Triggers>
    			<TextBlock.RenderTransform>
    				<CompositeTransform/>
    			</TextBlock.RenderTransform>
    		</TextBlock>
    		<Grid x:Name="ContentFallowing" Margin="0,105,0,0" RenderTransformOrigin="0.5,0.5">
    			<Grid.Projection>
    				<PlaneProjection/>
    			</Grid.Projection>
    			<Grid.RenderTransform>
    				<CompositeTransform/>
    			</Grid.RenderTransform>
    			<ListBox x:Name="lstFallowing" Margin="16,114,8,8" ItemTemplate="{StaticResource SearchTemplate}" MouseLeftButtonUp="lstFallowing_MouseLeftButtonUp"/>
    			<TextBlock HorizontalAlignment="Left" Margin="16,28,0,0" TextWrapping="Wrap" Width="82" Height="44" VerticalAlignment="Top"><Run Text="Search:"/><LineBreak/><Run/></TextBlock>
    			<TextBox x:Name="txtSearch" Height="35" Margin="98,8,143,0" TextWrapping="Wrap" Text="mela" VerticalAlignment="Top"/>
    			<Button x:Name="btnSearch" Content="Search" HorizontalAlignment="Right" Height="44" Margin="0,9,4,0" Width="139" VerticalAlignment="Top" Click="btnSearch_Click"/>

    		</Grid>

    	</Grid>

        <!--TitleGrid is the name of the application and page title-->

        <Grid x:Name="TitleGrid" Grid.Row="0">
            <TextBlock Text="TWITTER" x:Name="textBlockPageTitle" Style="{StaticResource PhoneTextPageTitle1Style}" Margin="20,28,0,-8" IsHitTestVisible="False"/>
            <TextBlock Text="login" x:Name="textBlockListTitle" Style="{StaticResource PhoneTextPageTitle2Style}" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Width="192">
            	<TextBlock.RenderTransform>
            		<CompositeTransform/>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock Text="timeline" x:Name="textBlockListTitleTimeline" MouseLeftButtonUp="textBlockListTitleTimeline_MouseLeftButtonUp" Style="{StaticResource PhoneTextPageTitle2Style}" Margin="0,43,-581,0" HorizontalAlignment="Right" Width="259" RenderTransformOrigin="0.5,0.5">
            	<i:Interaction.Triggers>
            		<i:EventTrigger EventName="MouseLeftButtonUp">
            			<ic:GoToStateAction StateName="Timeline"/>
            		</i:EventTrigger>
            	</i:Interaction.Triggers>
            	<TextBlock.RenderTransform>
            		<CompositeTransform/>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock Text="tweets" x:Name="textBlockListTitleTweets" Style="{StaticResource PhoneTextPageTitle2Style}" Margin="0,43,-900,0" HorizontalAlignment="Right" Width="228" RenderTransformOrigin="0.5,0.5" MouseLeftButtonUp="textBlockListTitleTweets_MouseLeftButtonUp">
            	<i:Interaction.Triggers>
            		<i:EventTrigger EventName="MouseLeftButtonDown">
            			<ic:GoToStateAction StateName="Tweets"/>
            		</i:EventTrigger>
            	</i:Interaction.Triggers>
            	<TextBlock.RenderTransform>
            		<CompositeTransform/>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock Text="profile" x:Name="textBlockListTitleEditProfile" Style="{StaticResource PhoneTextPageTitle2Style}" Margin="0,43,-225,0" HorizontalAlignment="Right" Width="225" RenderTransformOrigin="0.5,0.5">
            	<i:Interaction.Triggers>
            		<i:EventTrigger EventName="MouseLeftButtonDown">
            			<ic:GoToStateAction StateName="Profile"/>
            		</i:EventTrigger>
            	</i:Interaction.Triggers>
            	<TextBlock.RenderTransform>
            		<CompositeTransform/>
            	</TextBlock.RenderTransform>
            </TextBlock>
        </Grid>

    	<Grid x:Name="ContentLogin" Grid.Row="1" d:LayoutOverrides="GridBox" RenderTransformOrigin="0.5,0.5" Margin="0,4,-1908,-4" HorizontalAlignment="Right" Width="480">
    		<Grid.RenderTransform>
    			<CompositeTransform TranslateX="-1900"/>
    		</Grid.RenderTransform>
    		<TextBlock x:Name="lblUser" HorizontalAlignment="Left" TextWrapping="Wrap" Text="User:" VerticalAlignment="Top" Margin="34,193,0,0"/>
    		<TextBlock x:Name="lblPass" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Password:" VerticalAlignment="Top" Margin="34,270,0,0"/>
    		<PasswordBox x:Name="txtPassword" VerticalAlignment="Top" Margin="110,251,52,0" Password=""/>
    		<TextBox x:Name="txtUser" TextWrapping="Wrap" Text="melaniadanciu" VerticalAlignment="Top" Margin="110,175,52,0"/>
    		<Button x:Name="btnLogin" Content="Login" HorizontalAlignment="Right" Margin="0,0,52,239" Width="130" Height="72" VerticalAlignment="Bottom" Click="btnLogin_Click">
    			<i:Interaction.Triggers>
    				<i:EventTrigger EventName="Click">
    					<ic:GoToStateAction StateName="Profile"/>
    				</i:EventTrigger>
    			</i:Interaction.Triggers>
    		</Button>
    		<Button x:Name="btnCancel" Content="Cancel" Margin="121,0,186,239" Height="72" VerticalAlignment="Bottom" Click="btnCancel_Click"/>
        	
    	</Grid>
        <Grid x:Name="ContentProfile" Grid.Row="1" Margin="0,0,-465,0" HorizontalAlignment="Right" Width="480" RenderTransformOrigin="0.5,0.5">
        	<Grid.RenderTransform>
        		<CompositeTransform/>
        	</Grid.RenderTransform>
        	<TextBlock x:Name="lblName" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Margin="24,26,0,0"><Run Text="Name:"/><LineBreak/><Run/></TextBlock>
        	<TextBlock x:Name="lblLocation" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Location:" VerticalAlignment="Bottom" Margin="32,0,0,268"/>
        	<TextBlock x:Name="lblDescription" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Bottom" Margin="32,0,0,205"><Run Text="Description:"/><LineBreak/><Run/></TextBlock>
        	<TextBlock x:Name="lblImage" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Image:" VerticalAlignment="Top" Margin="24,79,0,0"/>
        	<TextBlock x:Name="txtName" TextWrapping="Wrap" Text="{Binding Name}" VerticalAlignment="Top" Margin="149,26,100,0"/>
        	<Image x:Name="Image" Margin="94,79,42,313" Source="{Binding Image}"/>
        	<TextBlock x:Name="txtLocation" TextWrapping="Wrap" Text="{Binding Location}" VerticalAlignment="Bottom" Margin="137,0,42,268"/>
        	<TextBlock x:Name="txtDescription" Height="198" Margin="163,0,42,60" TextWrapping="Wrap" Text="{Binding Description}" VerticalAlignment="Bottom"/>
        </Grid>
        <Grid x:Name="ContentTimeLine" Grid.Row="1" Margin="0,0,-940,0" HorizontalAlignment="Right" Width="480" RenderTransformOrigin="0.5,0.5">
        	<Grid.RenderTransform>
        		<CompositeTransform/>
        	</Grid.RenderTransform>
        	<ListBox x:Name="lstTimeline" Margin="8" ItemTemplate="{StaticResource Timelinetweet}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsPanel="{StaticResource ItemsPanelTemplate1}"/>
        </Grid>
        <Grid x:Name="ContentTweets" Grid.Row="1" Margin="0,0,-1420,0" HorizontalAlignment="Right" Width="480" RenderTransformOrigin="0.5,0.5">
        	<Grid.RenderTransform>
        		<CompositeTransform/>
        	</Grid.RenderTransform>
        	<ListBox x:Name="lstMyTweets" Margin="0,165,16,8" ItemTemplate="{StaticResource TemplateTeet}" ItemsPanel="{StaticResource ItemsPanelTemplate2}" ScrollViewer.HorizontalScrollBarVisibility="Disabled"/>
        	<TextBox Height="161" Margin="4,4,122,0" TextWrapping="Wrap" x:Name="txtPost" Text="TextBox" VerticalAlignment="Top"/>
        	<Button Content="Send" x:Name="btnSend" Click="btnSend_Click" HorizontalAlignment="Right" Height="153" Margin="0,8,8,0" VerticalAlignment="Top" Width="110"/>
        </Grid>
        <Grid x:Name="ContentEditProfile" Margin="0,-680,-465,0" HorizontalAlignment="Right" Width="480" Height="652" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5">
        	<Grid.RenderTransform>
        		<CompositeTransform/>
        	</Grid.RenderTransform>
        </Grid>
    </Grid>
    
</phoneNavigation:PhoneApplicationPage>